import layout from '@/layout/index.vue'
/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
  {
    path: '/redirect',
    component: layout,
    hidden: true,
    meta:{title:'中间页',affix:false,keepAlive: false},
    children: [
      {
        path: '/redirect/:path(.*)',
        meta:{title:'中间页',affix:false,keepAlive: false},
        component: () => import('@/views/redirect/index.vue')
      }
    ]
  },
  {
    path: '',
    name: 'Neuron',
    redirect: { name: 'NeuronIndex' },
    component:layout,
    meta:{title:'对象',affix:false,keepAlive: false},
    children: [
      {
        path: '/index',
        name: 'NeuronIndex',
        component: () => import('@/views/index.vue'),
        meta:{title:'对象',affix:true,keepAlive: true}
      },{
        path: '/designMysqlTable',
        name: 'DesignMysqlTable',
        component: () => import('@/views/mysql/operateView/tableDesignView.vue'),
        meta:{title:'设计表',affix:false,keepAlive: true}
      },{
        path: '/showMysqlTable',
        name: 'ShowMysqlTable',
        component: () => import('@/views/mysql/operateView/tableInfoView.vue'),
        meta:{title:'表详情',affix:false,keepAlive: true}
      },{
        path: '/queryConsole',
        name: 'QueryConsole',
        component: () => import('@/views/mysql/operateView/queryConsole.vue'),
        meta:{title:'查询',affix:false,keepAlive: true}
      },{
        path: '/QueryViewInfo',
        name: 'queryViewInfo',
        component: () => import('@/views/mysql/operateView/tableQueryViewInfo.vue'),
        meta:{title:'视图',affix:false,keepAlive: true}
      },{
        path: '/FunctionInfo',
        name: 'functionInfo',
        component: () => import('@/views/mysql/operateView/tableFunctionInfo.vue'),
        meta:{title:'函数',affix:false,keepAlive: true}
      }
    ]
  }
]
export default constantRouterMap
